home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 October / macformat-005.iso / Shareware City / Developers / CPreferences Folder / About CPreferences next >
Encoding:
Text File  |  1994-01-20  |  932 b   |  35 lines  |  [TEXT/MMCC]

  1. CPreferences Class 1.0
  2.  
  3.  
  4. This class was created to simplify the creation of preference
  5. files for an application.
  6.  
  7. The object is very general and simple to use.
  8.  
  9. When MW C++ supports templates, I will rewrite the class to support
  10. them. This will allow an easy way to create multiple preference files
  11. for applications that need them.
  12.  
  13. Use of CPreferences:
  14.  
  15.     1. Add "CPreferences* mPrefs" to your application class.
  16.  
  17.     2. Add this line to your constructor.
  18.         mPrefs = new CPreferences('CPI6', "\pTextStreamer 3.0 Prefs");
  19.         // 'CPI6' is the creator of the file.
  20.         // "\pTextStreamer 3.0 Prefs" is the name of the file.
  21.  
  22.     3. Add this line to your destructor
  23.             delete mPrefs;
  24.  
  25.     4. In order to access the data in your data structure, you will
  26.         need to add accessor functions to CPreferences.
  27.         
  28.  
  29. In the next version I will also include methods for using a Preferences
  30. dialog.
  31.  
  32. Richard A. Bray
  33. President
  34. Compu-Phobic, Inc.
  35. AOL: CompuFobic